<!-- 功能模块通用文件 -->
<#include "/comm/module.ftl"/>
<script type="text/javascript" src="${request.contextPath}/assets/js/module-index.js?${(.now)!}"></script>
<script type="text/javascript">
    layui.config({
        base: '${request.contextPath}/assets/lib/' //静态资源所在路径
    }).extend({
        tableBase: 'index', //主入口模块,
    });
</script>
<script type="text/html" id="operateBtn">
    {{#  if(d._status >-2){ }}
    <a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
    {{#  } }}
</script>
<script type="text/html" id="statusBtn">
    {{#  if(d._status==1){ }}
    <button class="layui-btn layui-btn-primary layui-border-green layui-btn-xs" lay-event="disable">启用</button>
    {{#  } else if(d._status==-1){ }}
    <button class="layui-btn layui-btn-primary layui-btn-xs" lay-event="disable">禁用</button>
    {{#  } else { }}
    <button class="layui-btn  layui-bg-orange layui-btn-xs ">{{  statusStr(d._status) }}</button>
    {{#  } }}
</script>
<#--//cols,数据列  onEvent(obj.event, obj.data._id, obj) 按钮点击回调, area[] 弹出框的大小, maxmin 是否显示最大化和最小化, isTreeTable 是否是treeTable-->